package com.proxy.customer;

import java.lang.reflect.Method;

/**
 * @author: AaronChun
 * @create: 2019-03-25 10:28
 * @description:
 **/
public interface CustomerInvocationHandler {

    /**
     * Processes a method invocation on a proxy instance and returns
     * the result.  This method will be invoked on an invocation handler
     * when a method is invoked on a proxy instance that it is
     * associated with.
     * @param proxy 代理对象
     * @param method 被代理对象方法
     * @param args  方法参数
     * @return
     * @throws Throwable
     */
    Object invoke(Object proxy, Method method, Object[] args)throws Throwable;


}
